﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SapB1WebApp.DAL;

namespace SapB1WebApp.DAL
{
    public class LoginDAO
    {
        public string GetLogin(string sapUserName, string sapPassword, string companyDB)
        {
            SAPConnection connect = new SAPConnection();
            string constr = connect.setConnectionStringDB(sapUserName, sapPassword, companyDB);
            string resultMess = connect.connectDBForLogin();
            if (resultMess.Length == 0)
            {
                resultMess = "SUCCESS";
            }
            return resultMess;
        }
    }
}